import {createStore,applyMiddleware} from "redux";

// 专门用来处理dispatch传递的中间件thunk
import thunk from "redux-thunk"

import rootReducer from "../reducers/index";
//调式工具
import {composeWithDevTools} from "redux-devtools-extension"

import {createLogger} from "redux-logger";
//中间件打印
let logger =createLogger()


let store = createStore(rootReducer,composeWithDevTools(applyMiddleware(thunk,logger)))

export default store